home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / proff.zoo / lookup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-07-15  |  463 b   |  24 lines

  1. /*
  2.  * from K&R "The C Programming language"
  3.  * Table lookup routines 
  4.  * structure and definitions
  5.  *
  6.  */
  7.  
  8.                     /* basic table entry */
  9. struct hashlist {
  10.     char    *name;
  11.     char    *def;
  12.     struct    hashlist *next;        /* next in chain     */
  13. };
  14.                     /* basic table entry */
  15. struct lexlist {
  16.     char    *name;
  17.     int    val;            /* lexical value     */
  18.     int    flag;            /* optional flag val */
  19.     struct    lexlist  *link;        /* next in chain     */
  20. };
  21.  
  22.  
  23. #define HASHMAX    100            /* size of hashtable */
  24.